import numpy as np
import matplotlib.pyplot as plt
'''
x = [np.random.randint(0,100) for i in range(100)]
y = [np.random.randint(0,100) for i in range(100)]

plt.plot(x, y, 'co') 
x = x[0:3]
y = y[0:3]

plt.plot(x,y, lw = 1)
plt.show()
'''

#consider the transimation of parameter, and construct repersent object
def visualize(points, paths):
    #plot position of points  
    px = points[:,0]
    py = points[:,1]
    plt.plot(px,py,'co')
    #plot path
    x = paths[:,0]
    y = paths[:,1]
    plt.plot(x,y,lw = 1)

    plt.show()

'''
#test of function visualzie
points = np.array([
    [1,2,3,4,5],
    [2,4,5,6,1]])
paths = np.array([
    [1,3],
    [2,5]])

visualize(points, paths)
'''
